// components/TopBarHeight/TopBarHeight.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    statusBarHeight: 0,
  },
  lifetimes: {
    attached: function () {
        const windowInfo = wx.getWindowInfo()
        console.log(windowInfo.statusBarHeight,'状态栏的高度')
      this.setData({
        statusBarHeight: windowInfo.statusBarHeight,
      })
      
    }
  },
  /**
   * 组件的方法列表
   */
  methods: {
 
  }
})